home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / ASRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  13.7 KB  |  344 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ASRegistry.h
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __ASREGISTRY__
  19. #define __ASREGISTRY__
  20.  
  21. #ifndef __AEREGISTRY__
  22. #include <AERegistry.h>
  23. #endif
  24. #ifndef __AEOBJECTS__
  25. #include <AEObjects.h>
  26. #endif
  27.  
  28.  
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50.  
  51.  
  52. enum {
  53.     keyAETarget                    = FOUR_CHAR_CODE('targ'),        /*  0x74617267  */
  54.     keySubjectAttr                = FOUR_CHAR_CODE('subj'),        /*  0x7375626a  */
  55.                                                                 /* Magic 'returning' parameter: */
  56.     keyASReturning                = FOUR_CHAR_CODE('Krtn'),        /*  0x4b72746e  */
  57.                                                                 /* AppleScript Specific Codes: */
  58.     kASAppleScriptSuite            = FOUR_CHAR_CODE('ascr'),        /*  0x61736372  */
  59.     kASTypeNamesSuite            = FOUR_CHAR_CODE('tpnm'),        /*  0x74706e6d  */
  60.                                                                 /* dynamic terminologies */
  61.     typeAETE                    = FOUR_CHAR_CODE('aete'),        /*  0x61657465  */
  62.     typeAEUT                    = FOUR_CHAR_CODE('aeut'),        /*  0x61657574  */
  63.     kGetAETE                    = FOUR_CHAR_CODE('gdte'),        /*  0x67647465  */
  64.     kGetAEUT                    = FOUR_CHAR_CODE('gdut'),        /*  0x67647574  */
  65.     kUpdateAEUT                    = FOUR_CHAR_CODE('udut'),        /*  0x75647574  */
  66.     kUpdateAETE                    = FOUR_CHAR_CODE('udte'),        /*  0x75647465  */
  67.     kCleanUpAEUT                = FOUR_CHAR_CODE('cdut'),        /*  0x63647574  */
  68.     kASComment                    = FOUR_CHAR_CODE('cmnt'),        /*  0x636d6e74  */
  69.     kASLaunchEvent                = FOUR_CHAR_CODE('noop'),        /*  0x6e6f6f70  */
  70.     keyScszResource                = FOUR_CHAR_CODE('scsz'),        /*  0x7363737A  */
  71.     typeScszResource            = FOUR_CHAR_CODE('scsz'),        /*  0x7363737A  */
  72.                                                                 /* subroutine calls */
  73.     kASSubroutineEvent            = FOUR_CHAR_CODE('psbr'),        /*  0x70736272  */
  74.     keyASSubroutineName            = FOUR_CHAR_CODE('snam')        /*  0x736e616d  */
  75. };
  76.  
  77. /* Operator Events: */
  78.  
  79. enum {
  80.                                                                 /* Binary: */
  81.     kASAdd                        = FOUR_CHAR_CODE('+   '),        /*  0x2b202020  */
  82.     kASSubtract                    = FOUR_CHAR_CODE('-   '),        /*  0x2d202020  */
  83.     kASMultiply                    = FOUR_CHAR_CODE('*   '),        /*  0x2a202020  */
  84.     kASDivide                    = FOUR_CHAR_CODE('/   '),        /*  0x2f202020  */
  85.     kASQuotient                    = FOUR_CHAR_CODE('div '),        /*  0x64697620  */
  86.     kASRemainder                = FOUR_CHAR_CODE('mod '),        /*  0x6d6f6420  */
  87.     kASPower                    = FOUR_CHAR_CODE('^   '),        /*  0x5e202020  */
  88.     kASEqual                    = kAEEquals,
  89.     kASNotEqual                    = FOUR_CHAR_CODE('≠   '),        /*  0xad202020  */
  90.     kASGreaterThan                = kAEGreaterThan,
  91.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  92.     kASLessThan                    = kAELessThan,
  93.     kASLessThanOrEqual            = kAELessThanEquals,
  94.     kASComesBefore                = FOUR_CHAR_CODE('cbfr'),        /*  0x63626672  */
  95.     kASComesAfter                = FOUR_CHAR_CODE('cafr'),        /*  0x63616672  */
  96.     kASConcatenate                = FOUR_CHAR_CODE('ccat'),        /*  0x63636174  */
  97.     kASStartsWith                = kAEBeginsWith,
  98.     kASEndsWith                    = kAEEndsWith,
  99.     kASContains                    = kAEContains
  100. };
  101.  
  102.  
  103. enum {
  104.     kASAnd                        = kAEAND,
  105.     kASOr                        = kAEOR,                        /* Unary: */
  106.     kASNot                        = kAENOT,
  107.     kASNegate                    = FOUR_CHAR_CODE('neg '),        /*  0x6e656720  */
  108.     keyASArg                    = FOUR_CHAR_CODE('arg ')        /*  0x61726720  */
  109. };
  110.  
  111.  
  112. enum {
  113.                                                                 /* event code for the 'error' statement */
  114.     kASErrorEventCode            = FOUR_CHAR_CODE('err '),        /*  0x65727220  */
  115.     kOSAErrorArgs                = FOUR_CHAR_CODE('erra'),        /*  0x65727261  */
  116.                                                                 /* Properties: */
  117.     pLength                        = FOUR_CHAR_CODE('leng'),        /*  0x6c656e67  */
  118.     pReverse                    = FOUR_CHAR_CODE('rvse'),        /*  0x72767365  */
  119.     pRest                        = FOUR_CHAR_CODE('rest'),        /*  0x72657374  */
  120.     pInherits                    = FOUR_CHAR_CODE('c@#^'),        /*  0x6340235e  */
  121.                                                                 /* User-Defined Record Fields: */
  122.     keyASUserRecordFields        = FOUR_CHAR_CODE('usrf'),        /*  0x75737266  */
  123.     typeUserRecordFields        = typeAEList
  124. };
  125.  
  126. /* Prepositions: */
  127.  
  128. enum {
  129.     keyASPrepositionAt            = FOUR_CHAR_CODE('at  '),        /*  0x61742020  */
  130.     keyASPrepositionIn            = FOUR_CHAR_CODE('in  '),        /*  0x696e2020  */
  131.     keyASPrepositionFrom        = FOUR_CHAR_CODE('from'),        /*  0x66726f6d  */
  132.     keyASPrepositionFor            = FOUR_CHAR_CODE('for '),        /*  0x666f7220  */
  133.     keyASPrepositionTo            = FOUR_CHAR_CODE('to  '),        /*  0x746f2020  */
  134.     keyASPrepositionThru        = FOUR_CHAR_CODE('thru'),        /*  0x74687275  */
  135.     keyASPrepositionThrough        = FOUR_CHAR_CODE('thgh'),        /*  0x74686768  */
  136.     keyASPrepositionBy            = FOUR_CHAR_CODE('by  '),        /*  0x62792020  */
  137.     keyASPrepositionOn            = FOUR_CHAR_CODE('on  '),        /*  0x6f6e2020  */
  138.     keyASPrepositionInto        = FOUR_CHAR_CODE('into'),        /*  0x696e746f  */
  139.     keyASPrepositionOnto        = FOUR_CHAR_CODE('onto'),        /*  0x6f6e746f  */
  140.     keyASPrepositionBetween        = FOUR_CHAR_CODE('btwn'),        /*  0x6274776e  */
  141.     keyASPrepositionAgainst        = FOUR_CHAR_CODE('agst'),        /*  0x61677374  */
  142.     keyASPrepositionOutOf        = FOUR_CHAR_CODE('outo'),        /*  0x6f75746f  */
  143.     keyASPrepositionInsteadOf    = FOUR_CHAR_CODE('isto'),        /*  0x6973746f  */
  144.     keyASPrepositionAsideFrom    = FOUR_CHAR_CODE('asdf'),        /*  0x61736466  */
  145.     keyASPrepositionAround        = FOUR_CHAR_CODE('arnd'),        /*  0x61726e64  */
  146.     keyASPrepositionBeside        = FOUR_CHAR_CODE('bsid'),        /*  0x62736964  */
  147.     keyASPrepositionBeneath        = FOUR_CHAR_CODE('bnth'),        /*  0x626e7468  */
  148.     keyASPrepositionUnder        = FOUR_CHAR_CODE('undr')        /*  0x756e6472  */
  149. };
  150.  
  151.  
  152. enum {
  153.     keyASPrepositionOver        = FOUR_CHAR_CODE('over'),        /*  0x6f766572  */
  154.     keyASPrepositionAbove        = FOUR_CHAR_CODE('abve'),        /*  0x61627665  */
  155.     keyASPrepositionBelow        = FOUR_CHAR_CODE('belw'),        /*  0x62656c77  */
  156.     keyASPrepositionApartFrom    = FOUR_CHAR_CODE('aprt'),        /*  0x61707274  */
  157.     keyASPrepositionGiven        = FOUR_CHAR_CODE('givn'),        /*  0x6769766e  */
  158.     keyASPrepositionWith        = FOUR_CHAR_CODE('with'),        /*  0x77697468  */
  159.     keyASPrepositionWithout        = FOUR_CHAR_CODE('wout'),        /*  0x776f7574  */
  160.     keyASPrepositionAbout        = FOUR_CHAR_CODE('abou'),        /*  0x61626f75  */
  161.     keyASPrepositionSince        = FOUR_CHAR_CODE('snce'),        /*  0x736e6365  */
  162.     keyASPrepositionUntil        = FOUR_CHAR_CODE('till')        /*  0x74696c6c  */
  163. };
  164.  
  165.  
  166. enum {
  167.                                                                 /* Terminology & Dialect things: */
  168.     kDialectBundleResType        = FOUR_CHAR_CODE('Dbdl'),        /*  0x4462646c  */
  169.                                                                 /* AppleScript Classes and Enums: */
  170.     cConstant                    = typeEnumerated,
  171.     cClassIdentifier            = pClass,
  172.     cObjectBeingExamined        = typeObjectBeingExamined,
  173.     cList                        = typeAEList,
  174.     cSmallReal                    = typeSMFloat,
  175.     cReal                        = typeFloat,
  176.     cRecord                        = typeAERecord,
  177.     cReference                    = cObjectSpecifier,
  178.     cUndefined                    = FOUR_CHAR_CODE('undf'),        /*  0x756e6466  */
  179.     cSymbol                        = FOUR_CHAR_CODE('symb'),        /*  0x73796d62  */
  180.     cLinkedList                    = FOUR_CHAR_CODE('llst'),        /*  0x6c6c7374  */
  181.     cVector                        = FOUR_CHAR_CODE('vect'),        /*  0x76656374  */
  182.     cEventIdentifier            = FOUR_CHAR_CODE('evnt'),        /*  0x65766e74  */
  183.     cKeyIdentifier                = FOUR_CHAR_CODE('kyid'),        /*  0x6b796964  */
  184.     cUserIdentifier                = FOUR_CHAR_CODE('uid '),        /*  0x75696420  */
  185.     cPreposition                = FOUR_CHAR_CODE('prep'),        /*  0x70726570  */
  186.     cKeyForm                    = enumKeyForm,
  187.     cScript                        = FOUR_CHAR_CODE('scpt'),        /*  0x73637074  */
  188.     cHandler                    = FOUR_CHAR_CODE('hand'),        /*  0x68616e64  */
  189.     cProcedure                    = FOUR_CHAR_CODE('proc')        /*  0x70726f63  */
  190. };
  191.  
  192.  
  193. enum {
  194.     cClosure                    = FOUR_CHAR_CODE('clsr'),        /*  0x636c7372  */
  195.     cRawData                    = FOUR_CHAR_CODE('rdat'),        /*  0x72646174  */
  196.     cString                        = typeChar,
  197.     cStringClass                = typeChar,
  198.     cNumber                        = FOUR_CHAR_CODE('nmbr'),        /*  0x6e6d6272  */
  199.     cListOrRecord                = FOUR_CHAR_CODE('lr  '),        /*  0x6c722020  */
  200.     cListOrString                = FOUR_CHAR_CODE('ls  '),        /*  0x6c732020  */
  201.     cListRecordOrString            = FOUR_CHAR_CODE('lrs '),        /*  0x6c727320  */
  202.     cNumberOrDateTime            = FOUR_CHAR_CODE('nd  '),        /*  0x6e642020  */
  203.     cNumberDateTimeOrString        = FOUR_CHAR_CODE('nds '),        /*  0x6e647320  */
  204.     cSeconds                    = FOUR_CHAR_CODE('scnd'),        /*  0x73636e64  */
  205.     enumBooleanValues            = FOUR_CHAR_CODE('boov'),        /*  0x626f6f76  */
  206.     kAETrue                        = typeTrue,
  207.     kAEFalse                    = typeFalse,
  208.     enumMiscValues                = FOUR_CHAR_CODE('misc'),        /*  0x6d697363  */
  209.     kASCurrentApplication        = FOUR_CHAR_CODE('cura'),        /*  0x63757261  */
  210.                                                                 /* User-defined property ospecs: */
  211.     formUserPropertyID            = FOUR_CHAR_CODE('usrp')        /*  0x75737270  */
  212. };
  213.  
  214.  
  215. enum {
  216.                                                                 /* Global properties: */
  217.     pASIt                        = FOUR_CHAR_CODE('it  '),        /*  0x69742020  */
  218.     pASMe                        = FOUR_CHAR_CODE('me  '),        /*  0x6d652020  */
  219.     pASResult                    = FOUR_CHAR_CODE('rslt'),        /*  0x72736c74  */
  220.     pASSpace                    = FOUR_CHAR_CODE('spac'),        /*  0x73706163  */
  221.     pASReturn                    = FOUR_CHAR_CODE('ret '),        /*  0x72657420  */
  222.     pASTab                        = FOUR_CHAR_CODE('tab '),        /*  0x74616220  */
  223.     pASPi                        = FOUR_CHAR_CODE('pi  '),        /*  0x70692020  */
  224.     pASParent                    = FOUR_CHAR_CODE('pare'),        /*  0x70617265  */
  225.     kASInitializeEventCode        = FOUR_CHAR_CODE('init'),        /*  0x696e6974  */
  226.     pASPrintLength                = FOUR_CHAR_CODE('prln'),        /*  0x70726c6e  */
  227.     pASPrintDepth                = FOUR_CHAR_CODE('prdp'),        /*  0x70726470  */
  228.     pASTopLevelScript            = FOUR_CHAR_CODE('ascr')        /*  0x61736372  */
  229. };
  230.  
  231.  
  232. enum {
  233.                                                                 /* Considerations */
  234.     kAECase                        = FOUR_CHAR_CODE('case'),        /*  0x63617365  */
  235.     kAEDiacritic                = FOUR_CHAR_CODE('diac'),        /*  0x64696163  */
  236.     kAEWhiteSpace                = FOUR_CHAR_CODE('whit'),        /*  0x77686974  */
  237.     kAEHyphens                    = FOUR_CHAR_CODE('hyph'),        /*  0x68797068  */
  238.     kAEExpansion                = FOUR_CHAR_CODE('expa'),        /*  0x65787061  */
  239.     kAEPunctuation                = FOUR_CHAR_CODE('punc'),        /*  0x70756e63  */
  240.     kAEZenkakuHankaku            = FOUR_CHAR_CODE('zkhk'),        /*  0x7a6b686b  */
  241.     kAESmallKana                = FOUR_CHAR_CODE('skna'),        /*  0x736b6e61  */
  242.     kAEKataHiragana                = FOUR_CHAR_CODE('hika'),        /*  0x68696b61  */
  243.                                                                 /* AppleScript considerations: */
  244.     kASConsiderReplies            = FOUR_CHAR_CODE('rmte'),        /*  0x726d7465  */
  245.     enumConsiderations            = FOUR_CHAR_CODE('cons')        /*  0x636f6e73  */
  246. };
  247.  
  248.  
  249. enum {
  250.     cCoercion                    = FOUR_CHAR_CODE('coec'),        /*  0x636f6563  */
  251.     cCoerceUpperCase            = FOUR_CHAR_CODE('txup'),        /*  0x74787570  */
  252.     cCoerceLowerCase            = FOUR_CHAR_CODE('txlo'),        /*  0x74786c6f  */
  253.     cCoerceRemoveDiacriticals    = FOUR_CHAR_CODE('txdc'),        /*  0x74786463  */
  254.     cCoerceRemovePunctuation    = FOUR_CHAR_CODE('txpc'),        /*  0x74787063  */
  255.     cCoerceRemoveHyphens        = FOUR_CHAR_CODE('txhy'),        /*  0x74786879  */
  256.     cCoerceOneByteToTwoByte        = FOUR_CHAR_CODE('txex'),        /*  0x74786578  */
  257.     cCoerceRemoveWhiteSpace        = FOUR_CHAR_CODE('txws'),        /*  0x74787773  */
  258.     cCoerceSmallKana            = FOUR_CHAR_CODE('txsk'),        /*  0x7478736b  */
  259.     cCoerceZenkakuhankaku        = FOUR_CHAR_CODE('txze'),        /*  0x74787a65  */
  260.     cCoerceKataHiragana            = FOUR_CHAR_CODE('txkh'),        /*  0x74786b68  */
  261.                                                                 /* Lorax things: */
  262.     cZone                        = FOUR_CHAR_CODE('zone'),        /*  0x7a6f6e65  */
  263.     cMachine                    = FOUR_CHAR_CODE('mach'),        /*  0x6d616368  */
  264.     cAddress                    = FOUR_CHAR_CODE('addr'),        /*  0x61646472  */
  265.     cRunningAddress                = FOUR_CHAR_CODE('radd'),        /*  0x72616464  */
  266.     cStorage                    = FOUR_CHAR_CODE('stor')        /*  0x73746f72  */
  267. };
  268.  
  269.  
  270. enum {
  271.                                                                 /* DateTime things: */
  272.     pASWeekday                    = FOUR_CHAR_CODE('wkdy'),        /*  0x776b6479  */
  273.     pASMonth                    = FOUR_CHAR_CODE('mnth'),        /*  0x6d6e7468  */
  274.     pASDay                        = FOUR_CHAR_CODE('day '),        /*  0x64617920  */
  275.     pASYear                        = FOUR_CHAR_CODE('year'),        /*  0x79656172  */
  276.     pASTime                        = FOUR_CHAR_CODE('time'),        /*  0x74696d65  */
  277.     pASDateString                = FOUR_CHAR_CODE('dstr'),        /*  0x64737472  */
  278.     pASTimeString                = FOUR_CHAR_CODE('tstr'),        /*  0x74737472  */
  279.                                                                 /* Months */
  280.     cMonth                        = pASMonth,
  281.     cJanuary                    = FOUR_CHAR_CODE('jan '),        /*  0x6a616e20  */
  282.     cFebruary                    = FOUR_CHAR_CODE('feb '),        /*  0x66656220  */
  283.     cMarch                        = FOUR_CHAR_CODE('mar '),        /*  0x6d617220  */
  284.     cApril                        = FOUR_CHAR_CODE('apr '),        /*  0x61707220  */
  285.     cMay                        = FOUR_CHAR_CODE('may '),        /*  0x6d617920  */
  286.     cJune                        = FOUR_CHAR_CODE('jun '),        /*  0x6a756e20  */
  287.     cJuly                        = FOUR_CHAR_CODE('jul '),        /*  0x6a756c20  */
  288.     cAugust                        = FOUR_CHAR_CODE('aug '),        /*  0x61756720  */
  289.     cSeptember                    = FOUR_CHAR_CODE('sep '),        /*  0x73657020  */
  290.     cOctober                    = FOUR_CHAR_CODE('oct '),        /*  0x6f637420  */
  291.     cNovember                    = FOUR_CHAR_CODE('nov '),        /*  0x6e6f7620  */
  292.     cDecember                    = FOUR_CHAR_CODE('dec ')        /*  0x64656320  */
  293. };
  294.  
  295.  
  296. enum {
  297.                                                                 /* Weekdays */
  298.     cWeekday                    = pASWeekday,
  299.     cSunday                        = FOUR_CHAR_CODE('sun '),        /*  0x73756e20  */
  300.     cMonday                        = FOUR_CHAR_CODE('mon '),        /*  0x6d6f6e20  */
  301.     cTuesday                    = FOUR_CHAR_CODE('tue '),        /*  0x74756520  */
  302.     cWednesday                    = FOUR_CHAR_CODE('wed '),        /*  0x77656420  */
  303.     cThursday                    = FOUR_CHAR_CODE('thu '),        /*  0x74687520  */
  304.     cFriday                        = FOUR_CHAR_CODE('fri '),        /*  0x66726920  */
  305.     cSaturday                    = FOUR_CHAR_CODE('sat '),        /*  0x73617420  */
  306.                                                                 /* AS 1.1 Globals: */
  307.     pASQuote                    = FOUR_CHAR_CODE('quot'),        /*  0x71756f74  */
  308.     pASSeconds                    = FOUR_CHAR_CODE('secs'),        /*  0x73656373  */
  309.     pASMinutes                    = FOUR_CHAR_CODE('min '),        /*  0x6d696e20  */
  310.     pASHours                    = FOUR_CHAR_CODE('hour'),        /*  0x686f7572  */
  311.     pASDays                        = FOUR_CHAR_CODE('days'),        /*  0x64617973  */
  312.     pASWeeks                    = FOUR_CHAR_CODE('week'),        /*  0x7765656b  */
  313.                                                                 /* Writing Code things: */
  314.     cWritingCodeInfo            = FOUR_CHAR_CODE('citl'),        /*  0x6369746c  */
  315.     pScriptCode                    = FOUR_CHAR_CODE('pscd'),        /*  0x70736364  */
  316.     pLangCode                    = FOUR_CHAR_CODE('plcd'),        /*  0x706c6364  */
  317.                                                                 /* Magic Tell and End Tell events for logging: */
  318.     kASMagicTellEvent            = FOUR_CHAR_CODE('tell'),        /*  0x74656c6c  */
  319.     kASMagicEndTellEvent        = FOUR_CHAR_CODE('tend')        /*  0x74656e64  */
  320. };
  321.  
  322.  
  323.  
  324. #if PRAGMA_STRUCT_ALIGN
  325.     #pragma options align=reset
  326. #elif PRAGMA_STRUCT_PACKPUSH
  327.     #pragma pack(pop)
  328. #elif PRAGMA_STRUCT_PACK
  329.     #pragma pack()
  330. #endif
  331.  
  332. #ifdef PRAGMA_IMPORT_OFF
  333. #pragma import off
  334. #elif PRAGMA_IMPORT
  335. #pragma import reset
  336. #endif
  337.  
  338. #ifdef __cplusplus
  339. }
  340. #endif
  341.  
  342. #endif /* __ASREGISTRY__ */
  343.  
  344.